const IS_PROD = false

const BASE_API_PROD = 'http://qywechat.dtx-tech.com/api'
const BASE_API_TEST = 'http://qywechat.dtx-tech.com/api'

const WEAPP_API_PROD = 'http://qywechat.dtx-tech.com/api'
const WEAPP_API_TEST = 'http://qywechat.dtx-tech.com/api'

const SG_API_PROD = 'http://sg.dtx-tech.com/dbalance'
const SG_API_TEST = 'http://sg.test.dtx-tech.com/dbalance'

const BASE_API = IS_PROD ? BASE_API_PROD : BASE_API_TEST
const SG_API = IS_PROD ? SG_API_PROD : SG_API_TEST
const WEAPP_API = IS_PROD ? WEAPP_API_PROD : WEAPP_API_TEST

const URL = window.location.host

let URL_PROD
if (URL.search('dps') != -1) {
	URL_PROD = true
} else {
	URL_PROD = false
}

const URL_API = URL_PROD ? BASE_API : WEAPP_API
